﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Common.Extension
{
    public static class StringExtension
    {
        public static string ToJsonString(this object data)
        {
            if (data == null) { return null; }

            return Newtonsoft.Json.JsonConvert.SerializeObject(data);
        }
    }
}
